package com.tencent.wxcloudrun.service;

import com.tencent.wxcloudrun.dao.CouponCateMapper;
import com.tencent.wxcloudrun.model.Coupon;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: CouponCateService
 * Package: com.tencent.wxcloudrun.service
 * Description:
 *
 * @Date: 2023/1/23 2:04 PM
 * @Author: wht
 */
@Slf4j
@Service
public class CouponCateService {
    @Autowired
    CouponCateMapper couponCateMapper;

    public void addOneCouponCate(Coupon coupon) {
        couponCateMapper.addOneCouponCate(coupon);
    }

    public void updateOneCouponCateById(Coupon coupon) {
        couponCateMapper.updateOneCouponCateById(coupon);
    }

    public List<Coupon> getCouponCateList(Coupon coupon) {
        List<Coupon> res = couponCateMapper.getCouponCateList(coupon);
        return res;
    }

}
